﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="nedelu_bildes.aspx.cs" Inherits="nedelu_bildes" EnableEventValidation="true" %>

<%@ Import   Namespace= "System.Data" %>
<%@ Import Namespace="System.ComponentModel" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:Repeater ID="Repeater1" runat="server">
    
    <ItemTemplate>
    <asp:Table id="Table1" runat="server" Width="600px" BorderWidth="0">
                   
        <asp:TableRow>
            <asp:TableCell CssClass="tableCss2">
            
          <a href= "<%# ((DataRowView)Container.DataItem).Row["imgBig"]%>" target="_self"><img src="<%# ((DataRowView)Container.DataItem).Row["imgSmall"]%>" style="float: left" class="bildelink"/> </a>

             <%# DataBinder.Eval(Container.DataItem, "info") %>
             </asp:TableCell> 
          </asp:TableRow>
        
    </asp:Table>
    </ItemTemplate>
  <AlternatingItemTemplate>
    <asp:Table id="Table1" runat="server" Width="600px" CssClass="odd">

        <asp:TableRow CssClass="odd">
            <asp:TableCell CssClass="tableCss2">
                <a href= "<%# ((DataRowView)Container.DataItem).Row["imgBig"]%>" target="_self">
          <img src="<%# ((DataRowView)Container.DataItem).Row["imgSmall"]%>" style="float: left" class="bildelink"/>
         </a>
               <%# DataBinder.Eval(Container.DataItem, "info") %>
               </asp:TableCell> 
          </asp:TableRow>
    </asp:Table>
   
  </AlternatingItemTemplate>  
     
    </asp:Repeater>
    

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MyDB %>" 
        
    SelectCommand="SELECT ID, info, imgSmall, imgBig FROM nedBilde ORDER BY ID DESC">
    </asp:SqlDataSource>
    <br />&nbsp
      
    <asp:Label ID="lblCurrentPage" runat="server" Text="LblCurentPage"></asp:Label> <br />
        
    <asp:LinkButton ID="cmdPrev" runat="server" CssClass="pageBtn"  Text="&lt;&lt;" 
        onclick="cmdPrev_Click" Font-Bold="False" />
    <asp:LinkButton ID="cmdNext" runat="server" CssClass="pageBtn" Text="&gt;&gt;" onclick="cmdNext_Click1" />
    <br />
    &nbsp
    
</asp:Content>

